//
//  CPDiscoverTableViewController.swift
//  WeiBo1
//
//  Created by chengpeng on 16/3/4.
//  Copyright © 2016年 chengpeng. All rights reserved.
//

import UIKit

class CPDiscoverTableViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

       setupUI()
    }

    private func setupUI() {
        
        //初始化搜索框
        
        let searchView = CPDiscoverSearchView.searchView()
        searchView.frame.size.width = UIScreen.mainScreen().bounds.width
         
        
        // 设置成 titleView
        navigationItem.titleView = searchView
        
        
    }


}
